<template>
    <div>
        <div>
          
        </div>
    </div>
</template>

<script>
import { mapState,mapActions,mapMutations } from "vuex";
  export default {
   computed:{
       ...mapState({
         currentPage:state => state.teacher.pagiConfig.currentPage,
         pageSize: state => state.teacher.pagiConfig.pageSize,
         totalPage :state => state.teacher.totalPage,
         total:state => state.teacher.total,
       })
   },
    methods: {
      ...mapActions([
        'getUserData'
      ]),
      ...mapMutations([
        'getPageSize','getCurrentPage'
      ]),
      handleSizeChange(val) {
        this.getPageSize(val)
        this.getUserData()
        console.log(`每页 ${val} 条`);
      },
      handleCurrentChange(val) {
        // console.log(this.currentPage2)
        // this.currentPage2 = val
        this.getCurrentPage(val)
         this.getUserData()
        console.log(`当前页: ${val}`);
      }
    },
    data() {
      return {
        // currentPage2: 4
      };
    }
  }
</script>

<style scoped>
</style>